package com.bsoft.gol.hbs.bbpmessagel.entity;

import javax.persistence.*;
import java.util.Objects;

/**
 * @description:消息管理配置升级---模板配置  废弃
 * @author: zhengcb10708
 * @create: 2022-01-20 13:22
 **/
@Entity
@Table(name = "hi_sys_msg_tpl")
public class HiSysMsgTplEntity {
    private String id;
    private String cd;
    private byte sdTpl;
    private String tplKey;
    private String tplVal;
    private String color;

    @Id
    @Column(name = "id")
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "cd")
    public String getCd() {
        return cd;
    }

    public void setCd(String cd) {
        this.cd = cd;
    }

    @Basic
    @Column(name = "sd_tpl")
    public byte getSdTpl() {
        return sdTpl;
    }

    public void setSdTpl(byte sdTpl) {
        this.sdTpl = sdTpl;
    }

    @Basic
    @Column(name = "tpl_key")
    public String getTplKey() {
        return tplKey;
    }

    public void setTplKey(String tplKey) {
        this.tplKey = tplKey;
    }

    @Basic
    @Column(name = "tpl_val")
    public String getTplVal() {
        return tplVal;
    }

    public void setTplVal(String tplVal) {
        this.tplVal = tplVal;
    }

    @Basic
    @Column(name = "color")
    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        HiSysMsgTplEntity that = (HiSysMsgTplEntity) o;
        return sdTpl == that.sdTpl &&
                Objects.equals(id, that.id) &&
                Objects.equals(cd, that.cd) &&
                Objects.equals(tplKey, that.tplKey) &&
                Objects.equals(tplVal, that.tplVal) &&
                Objects.equals(color, that.color);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, cd, sdTpl, tplKey, tplVal, color);
    }
}
